<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>自然资源添加页面</title>
  <link rel="stylesheet" href="../../../yl/index.css" />
  <!-- 布局样式 -->
  <link rel="stylesheet" href="../../../yl/style.css" />
  <link rel="stylesheet" href="../../../yl/mobile.css" />
  <link rel="stylesheet" href="../../../yl/easyui.css" />
  <link rel="stylesheet" href="../../../yl/icon.css" />
</head>

<body>
  <!-- <div id="app"> -->
  <div class="easyui-navpanel" id="app" v-cloak>
    <header>
      <div class="m-toolbar">
        <div class="m-title">{{action=='Add'?'添加自然资源信息':action=='Modify'?'分配自然资源':''}}</div>
      </div>
    </header>
    <div class="easyui-navpanel panel-body panel-body-nobottom panel-body-noborder" style="height: 3000px"
      id="MainTable" ref="MainTable"
      :data-options="JSON.stringify({ 'TableName': 'natural_resources_allocation', 'form': 'dataForm' ,'primary_key':'Natural_Resource_Allocation_SerialNumber' })">
      <div class="yl-main">
        <div class="table_titel">
          <div class="titel">自然资源信息</div>
        </div>
        <el-form :model="dataForm1" ref="form" inline-message="true" style="width: 100%">
          <el-descriptions :column="2" size="large" border>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">自然资源名称</div>
              </template>
              <el-input disabled v-model="dataForm1.Natural_Resource_Name" class="borderless-input"
                placeholder="请输入自然资源名称" />
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">自然资源用途</div>
              </template>
              <el-cascader disabled @change="changeCity" class="borderless-input" v-model="cityValue" filterable
                :props="{value:'Natural_Resource_Usage_SerialNumber',label:'Natural_Resource_Usage_Name',children:'children'}"
                placeholder="请选择自然资源用途" :options="Natural_Resource_Usage" style="width: 100%"></el-cascader>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">自然资源归属权</div>
              </template>
              <el-form-item :rules="[{ required: true, message: '请输入自然资源名称', trigger: 'change' }]"
                prop="Natural_Resource_Ownership_Rights">
                <el-select disabled clearable v-model.trim="dataForm1.Natural_Resource_Ownership_Rights"
                  placeholder="请选择自然资源" filterable style="width: 100%">
                  <el-option v-for="(value,key) in Ownership_Rights" :key="key" :label="value" :value="key"></el-option>
                </el-select>
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">村行政区</div>
              </template>
              <el-select disabled clearable v-model.trim="dataForm1.Village_SerialNumber" placeholder="请选择村行政区"
                filterable style="width: 100%">
                <el-option v-for="(item,index) in village" :key="index" :label="item.Village"
                  :value="item.VillageNumber"></el-option>
              </el-select>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">面积（亩）</div>
              </template>
              <el-input disabled v-model="dataForm1.Area" class="borderless-input" placeholder="请输入面积" />
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">坐标集</div>
              </template>
              <el-input disabled v-model="dataForm1.Coords" class="borderless-input" placeholder="请输入坐标集" />
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">质量等级</div>
              </template>
              <el-select disabled clearable v-model.trim="dataForm1.Quality_Grade" placeholder="请选择质量等级" filterable
                style="width: 100%">
                <el-option v-for="(item,index) in natural_resources_quality_grade" :key="index"
                  :label="item.Quality_Grade_Name" :value="item.Quality_Grade_SerialNumber"></el-option>
              </el-select>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">占用状态</div>
              </template>
              <el-select disabled clearable v-model.trim="dataForm1.Usage_status" placeholder="请选择占用状态" filterable
                style="width: 100%">
                <el-option v-for="(item,index) in Usage_status" :key="index" :label="item.label"
                  :value="item.value"></el-option>
              </el-select>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">所属村经济组织</div>
              </template>
              <el-form-item :rules="[{ required: true, message: '请选择经济组织', trigger: 'change' }]"
                prop="Village_Collective_SerialNumber">
                <el-select disabled v-model.trim="dataForm1.Village_Collective_SerialNumber" placeholder="请选择经济组织"
                  filterable style="width: 100%">
                  <el-option v-for="(item,index) in village_collective" :key="index" :label="item.Org_Name"
                    :value="item.Village_Collective_SerialNumber"></el-option>
                </el-select>
              </el-form-item>
            </el-descriptions-item>
            <!-- <el-descriptions-item>
              <template #label>
                <div class="cell-item">土地归属</div>
              </template>
              <el-select clearable v-model.trim="dataForm.Natural_Resource_Ownership" placeholder="请选择土地归属" filterable
                style="width: 100%">
                <el-option v-for="(item,index) in personal_information" :key="index" :label="item.Personal_Name"
                  :value="item.ID_Card_Number"></el-option>
              </el-select>
            </el-descriptions-item> -->
            <!-- <el-descriptions-item>
              <template #label>
                <div class="cell-item">归属日期</div>
              </template>
              <el-form-item prop="Joining_Date">
                <el-date-picker v-model="dataForm.Ownership_Start_Date" format="YYYY-MM-DD" value-format="YYYY-MM-DD"
                  class="borderless-input" type="date" placeholder="请选择归属开始日期" size="large" />
              </el-form-item>
            </el-descriptions-item> -->
            <!-- <el-descriptions-item>
              <template #label>
                <div class="cell-item">归属结束日期</div>
              </template>
              <el-form-item prop="Joining_Date">
                <el-date-picker v-model="dataForm.Ownership_End_Date" format="YYYY-MM-DD" value-format="YYYY-MM-DD"
                  class="borderless-input" type="date" placeholder="请选择归属结束日期" size="large" />
              </el-form-item>
            </el-descriptions-item> -->
          </el-descriptions>
        </el-form>
        <div>
          <!-- <div class="table_titel">
            <div class="titel">分配农户</div>
            <div class="operation"></div>
          </div>
          <el-form :model="dataForm" ref="form1" inline-message="true" style="width: 100%">
            <el-descriptions :column="2" size="large" border>
              <el-descriptions-item>
                <template #label>
                  <div class="cell-item">归属人</div>
                </template>
                <el-form-item :rules="[{ required: true, message: '请选择归属人', trigger: 'change' }]"
                  prop="Natural_Resource_Ownership">
                  <el-select clearable @change="changeOwnership" v-model.trim="dataForm.Natural_Resource_Ownership"
                    placeholder="请选择归属人" filterable style="width: 100%">
                    <el-option v-for="(item,index) in personal_information" :key="index" :label="item.Personal_Name"
                      :value="item.ID_Card_Number"></el-option>
                  </el-select>
                </el-form-item>
              </el-descriptions-item>
              <el-descriptions-item>
                <template #label>
                  <div class="cell-item">归属日期</div>
                </template>
                <el-form-item :rules="[{ required: true, message: '请选择归属开始日期', trigger: 'change' }]"
                  prop="Ownership_Start_Date">
                  <el-date-picker @change="changeStart_Date" v-model="dataForm.Ownership_Start_Date" format="YYYY-MM-DD"
                    value-format="YYYY-MM-DD" class="borderless-input" type="date" placeholder="请选择归属开始日期" size="large" />
                </el-form-item>
              </el-descriptions-item>
            </el-descriptions>
          </el-form> -->
          <div class="table_titel">
            <div class="titel">合同签署</div>
            <div class="operation"></div>
          </div>
          <el-form :model="dataForm2" ref="form2" inline-message="true" style="width: 100%">
            <el-descriptions :column="1" size="large" border>
              <el-descriptions-item>
                <template #label>
                  <div class="cell-item">承包方类型</div>
                </template>
                <el-select clearable v-model.trim="dataForm2.Contractor_Type_SerialNumber" placeholder="请选择承包方类型"
                  filterable style="width: 100%">
                  <el-option v-for="(item,index) in natural_resources_contract_type" :key="index"
                    :label="item.Contractor_Type" :value="item.Contractor_Type_SerialNumber"></el-option>
                </el-select>
              </el-descriptions-item>
              <el-descriptions-item>
                <template #label>
                  <div class="cell-item">证件编号</div>
                </template>
                <el-form-item @input="BlurID_Number"
                  :rules="[{ required: true, message: '请输入证件编号', trigger: 'change' }]" prop="ID_Number">
                  <el-input v-model.trim="dataForm2.ID_Number" class="borderless-input" placeholder="请输入证件编号" />
                </el-form-item>
              </el-descriptions-item>
              <el-descriptions-item>
                <template #label>
                  <div class="cell-item">承包方名称</div>
                </template>
                <el-input v-model="dataForm2.Contractor_Name" class="borderless-input" placeholder="请输入承包方名称" />
              </el-descriptions-item>
              <el-descriptions-item>
                <template #label>
                  <div class="cell-item">联系电话</div>
                </template>
                <el-form-item :rules="[{ required: true, message: '请输入联系电话', trigger: 'change' }]" prop="Contact_Phone">
                  <el-input v-model="dataForm2.Contact_Phone" class="borderless-input" placeholder="请输入联系电话" />
                </el-form-item>
              </el-descriptions-item>
              <el-descriptions-item>
                <template #label>
                  <div class="cell-item">合同金额</div>
                </template>
                <el-input v-model="dataForm2.Contract_Amount" class="borderless-input" placeholder="请输入合同金额" />
              </el-descriptions-item>
              <el-descriptions-item>
                <template #label>
                  <div class="cell-item">付款周期</div>
                </template>
                <el-input v-model="dataForm2.Payment_Cycle" class="borderless-input" placeholder="请输入付款周期" />
              </el-descriptions-item>
              <el-descriptions-item>
                <template #label>
                  <div class="cell-item">签订日期</div>
                </template>
                <el-date-picker v-model="dataForm2.Sign_Date" format="YYYY-MM-DD" value-format="YYYY-MM-DD"
                  class="borderless-input" type="date" placeholder="请选择签订日期" size="large"></el-date-picker>
              </el-descriptions-item>
              <el-descriptions-item>
                <template #label>
                  <div class="cell-item">生效日期</div>
                </template>
                <el-date-picker v-model="dataForm2.Start_Date" format="YYYY-MM-DD" value-format="YYYY-MM-DD"
                  class="borderless-input" type="date" placeholder="请选择生效日期" size="large"></el-date-picker>
              </el-descriptions-item>
              <el-descriptions-item>
                <template #label>
                  <div class="cell-item">结束日期</div>
                </template>
                <el-date-picker v-model="dataForm2.End_Date" format="YYYY-MM-DD" value-format="YYYY-MM-DD"
                  class="borderless-input" type="date" placeholder="请选择结束日期" size="large"></el-date-picker>
              </el-descriptions-item>
              <!--  <el-descriptions-item>
                <template #label>
                  <div class="cell-item">合同状态</div>
                </template>
                <el-input v-model="dataForm.Contract_Status" class="borderless-input" placeholder="请输入合同状态" />
              </el-descriptions-item>-->
              <el-descriptions-item>
                <template #label>
                  <div class="cell-item">合同路径</div>
                </template>
                <yl-upload drag v-model="dataForm2.Attachment_Path"></yl-upload>
              </el-descriptions-item>
            </el-descriptions>
          </el-form>
        </div>
      </div>

    </div>
    <footer class="botton-ann">
      <el-button @click="goBack">返回</el-button>
      <el-button type="primary" plain :loading="loading" @click="handleSubmit">提交</el-button>
    </footer>
  </div>
</body>
<script src="../../../utils/utils.js"></script>
<script src="../../../config/config.js"></script>
<script src="../../../utils/mixins.js"></script>
<script src="../../../yl/vue.js"></script>
<script src="../../../yl/index.js"></script>
<script src="../../../yl/zh-cn.mjs"></script>
<script src="../../../yl/index.iife.min.js"></script>
<script src="../../../yl/jquery.min.js"></script>
<script src="../../../utils/jquery.cookie.js"></script>
<script src="../../../yl/jquery.easyui.min.js"></script>
<script src="../../../yl/jquery.easyui.mobile.js"></script>
<script src="../../../yl/moment.min.js"></script>
<script src="../../../api/request.js"></script>
<script src="./js/add1.js"></script>

</html>